<%@ page import="java.util.Enumeration" %><%--
  Created by IntelliJ IDEA.
  User: rosekon
  Date: 2022/7/2
  Time: 11:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Enumeration<String> headerNames = request.getHeaderNames();
    while (headerNames.hasMoreElements()){
        String name = headerNames.nextElement();
        String header = request.getHeader(name);
        out.print(name+"-----"+header+"<br/>");
    }
    String header = request.getHeader("user-agent");
    if(header.contains("MSIE")){
        request.getRequestDispatcher("stop.jsp").forward(request,response);
    }else {
        out.print("欢迎访问本页面！");
    }
%>
</body>
</html>
